import 'package:flutter/material.dart';
import '../conponate/sliding_items.dart';
// import 'package:flutter_swiper/flutter_swiper.dart';

class SwiperPage extends StatefulWidget {
  const SwiperPage({Key? key}) : super(key: key);

  @override
  _SwiperPageState createState() => _SwiperPageState();
}

class _SwiperPageState extends State<SwiperPage> {
  List<Widget> items = [
    sliding_items(),
    sliding_items_2(),
    sliding_items_3(),
    sliding_items_4(),
  ];

  @override
  Widget build(BuildContext context) {
    return Container(
      height: 260,
      child: PageView.builder(
        onPageChanged: (index) {
          print('current page $index');
        },
        itemCount: items.length,
        itemBuilder: (context, index) {
          return items[index];
        },
      ),
    );
  }
}
